/*
 * 项目名称:    wms-server-jeecg
 * 创建人员:    DongPeng
 * 创建时间:    2023-12-16
 * copyright(c) 2022 无锡星智数服科技有限公司
 */
package org.jeecg.modules.business.printservice.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.business.printservice.entity.vo.SaleOutPrintVO;
import org.jeecg.modules.business.printservice.service.IWmsGeneralPrintService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 通用打印业务接口
 *
 * @author DongPeng
 * @version 1.0.0
 * @date 2023-12-16
 * @description 类描述
 */
@Api(tags="通用打印业务接口")
@RestController
@RequestMapping("/printservice/wmsGeneralPrint")
@Slf4j
@RequiredArgsConstructor
public class WmsGeneralPrintController {

    private final IWmsGeneralPrintService iWmsGeneralPrintService;

    /**
     * 销售出库单打印
     *
     * @author DongPeng
     * @date 2023/12/16 13:48
     * @param vo 出库单id
     * @return
     */
    @ApiOperation(value="销售出库单打印", notes="销售出库单打印")
    @PostMapping(value = "/exec")
    public Result<String> saleOutPrint(@RequestBody SaleOutPrintVO vo) {
        return iWmsGeneralPrintService.saleOutPrint(vo);
    }
}
